package com.spring.javaconfing;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class App {

	public static void main(String[] args) {
		
		ApplicationContext context = new AnnotationConfigApplicationContext(AppConfing.class);
		
		HelloWorld obj = (HelloWorld) context.getBean("helloBean");
		
		obj.printHelloworld("Spring3 java Confing");
		
		
		Kisi kisi = (Kisi) context.getBean("kisi");
		
		kisi.adi();
				

	}
}
